home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue.arc / DVVER.C < prev    next >
C/C++ Source or Header  |  1990-01-09  |  962b  |  28 lines

  1. /*====================================================*/
  2. /* DVVER.C                                            */
  3. /*                                                    */
  4. /* (c) Copyright 1988 Ralf Brown  All Rights Reserved */
  5. /* May be freely copied for noncommercial use,        */
  6. /* provided that this copyright notice remains intact */
  7. /* and any changes are clearly indicated in the       */
  8. /* comment blocks preceding functions                 */
  9. /*====================================================*/
  10.  
  11. #include "tvapi.h"
  12.  
  13. /*======================================================*/
  14. /* DVver--return DESQview version, -1 if not loaded     */
  15. /*   Ralf Brown 4/3/88                                  */
  16. /*======================================================*/
  17.  
  18. WORD pascal DVver(void)
  19. {
  20.    _AX = 0x2B01 ;
  21.    _CX = 0x4445 ;
  22.    _DX = 0x5351 ;
  23.    geninterrupt(0x21);
  24.    return (_AL == 0xFF) ? -1 : _BX ;
  25. }
  26.  
  27. /* End of DVVER.C */
  28.